
#ifndef _PopupWidget_H__
#define _PopupWidget_H__

#include <QObject>
#include <QWidget>
#include <QAction>
#include <QEvent>
#include <QToolButton>
#include <QIcon>
#include <QVBoxLayout>
#include "RibbonStyleAPI.hpp"

NAMESPACE_BEGIN(NSPopupWidget)

class RIBBONSTYLEAPI PopupWidget :public QWidget {
	//Q_OBJECT
public:
	PopupWidget(QWidget*parent = nullptr);
	~PopupWidget();

	void setMoreButton(QToolButton* button = nullptr) { more_button = button; };
	void setPopupAction(QMap<int, QToolButton*>& toolbtns);


protected:
	bool eventFilter(QObject* obj, QEvent* event) override;

private:
	QToolButton* more_button;

};



NAMESPACE_END

#endif // !_PopupWidget_H__




